<b class="xtop2"><b class="xb12"></b><b class="xb22"></b><b class="xb32"></b><b class="xb42"></b></b>

<div class="box_utama">
    <div class="box_akun">
        <img class="icon_judul" src="images/icon_judul.png" alt="" title="" />
        <div class="judul_akun"><b><?php echo $judul ?></b></div>
    </div>

    <div class="box_data_akun">

        <div class="root_akun">

            <b class="xtop"><b class="x1"></b><b class="x2"></b><b class="x3"></b><b class="x4"></b></b>

            <div class="data_akun">
                <div class="judul_data_akun"><h3>Selamat datang. Berikut ini adalah profil Anda:</h3></div>

                <table width="100%">
                    <tr>
                        <td>Nama Lengkap</td>
                        <td>: <?php echo $this->session->userdata('nama_lengkap') ?></td>
                    </tr>
                    <tr>
                        <td>E-mail</td>
                        <td>: <?php echo $this->session->userdata('email') ?></td>
                    </tr>
                    <tr>
                        <td>No. Telepon</td>
                        <td>: <?php echo $this->session->userdata('telp') ?></td>
                    </tr>
                    <tr>
                        <td>Umur</td>
                        <td>: <?php echo $this->session->userdata('umur') ?></td>
                    </tr>
                    <tr>
                        <td>Pekerjaan</td>
                        <td>: <?php echo $this->session->userdata('pekerjaan') ?></td>
                    </tr>
                    <tr>
                        <td>Tempat Lahir</td>
                        <td>: <?php echo $this->session->userdata('tempat_lahir') ?></td>
                    </tr>
                    <tr>
                        <td>Tanggal Lahir</td>
                        <td>: <?php echo $this->session->userdata('tgl_lahir') ?></td>
                    </tr>
                    <tr>
                        <td>Alamat</td>
                        <td>: <?php echo $this->session->userdata('alamat') ?></td>
                    </tr>

                </table>

                <div class="judul_data_akun">
                    <h3>Untuk mengedit profil Anda, <?php echo anchor('akun/edit_profil', 'klik di sini'); ?></h3>
                    <h3>Untuk mengubah password Anda, <?php echo anchor('akun/ubah_password', 'klik di sini'); ?></h3>
                    <h3><?php echo anchor('akun/logout', 'Logout'); ?></h3>
                </div>

                <div class="clear"></div>
            </div>
            <b class="xbottom"><b class="x4"></b><b class="x3"></b><b class="x2"></b><b class="x1"></b></b>

        </div>
    </div>



    <div class="box_akun">
        <img class="icon_judul" src="images/icon_judul.png" alt="" title="" />
        <div class="judul_akun"><b>Riwayat pesanan saya</b></div>
    </div>

    <div class="table_akun">
        <table class="cart_table_akun">

            <tr class="cart_title">
                <th>No.</th>
                <th>ID pesanan</th>
                <th>Tanggal</th>
                <th>Pembayaran</th>
                <th>Biaya total</th>
                <th>Status pengiriman</th>
            </tr>
            <?php $i = 1;
            foreach ($daftar_pesanan as $pesanan) : ?>
                <tr>
                    <td><?php echo $i ?></td>
                    <td>
                        <?php echo $pesanan['id_pesanan'] ?><br/>
    <?php echo anchor_popup('akun/detail_pesanan/' . $pesanan['id_pesanan'], "Lihat detail", array('width' => '620', 'height' => '480', 'status' => 'no')) ?>
                    </td>
                    <td><?php echo $pesanan['tanggal_pemesanan'] ?></td>
                    <td><?php echo $pesanan['metode_pembayaran'] ?></td>
                    <td>Rp.<?php echo $this->cart->format_number($pesanan['total_biaya']) ?></td>
                    <td><?php echo ($pesanan['status_pengiriman']) ? '<span style="color: green">Sudah dikirim</span>' : '<span style="color: red">Belum dikirim</span>'; ?></td>
                </tr>
    <?php $i++;
endforeach; ?>
        </table>
    </div>
    <div class="clear"></div>

</div>

<b class="xbottom2"><b class="xb42"></b><b class="xb32"></b><b class="xb22"></b><b class="xb12"></b></b>
